-# Upload packages to boot server
-SERVER := root@onelab-plc.inria.fr
-RPMSAREA := /plc/data/var/www/html/install-rpms/
-BOOTAREA := /plc/data/var/www/html/boot/
-
-YUMGROUPS := $(PLDISTRO).xml
-#BASE := onelab
-BASETMP := planetlab-upgrading
-BASEBAK := planetlab-bak
-BASE := planetlab
-
-RPMS/yumgroups.xml:
- install -D -m 644 $(YUMGROUPS) RPMS/yumgroups.xml
-
-install: install-rpms install-index install-bootstrap
-
-install-rpms:RPMS/yumgroups.xml
- # create repository
- ssh $(SERVER) mkdir -p $(RPMSAREA)/$(BASETMP)
- # populate
- rsync -v --perms --times --group --compress --rsh=ssh \
- RPMS/yumgroups.xml $(wildcard RPMS/*/*.rpm) $(SERVER):$(RPMSAREA)/$(BASETMP)/
-
-# would be better if we could run plc.d/packages on a temporary dir
-# currently while we run packages clients wont be able to use the repo (nor signed nor indexed)
-install-index:
- # cleanup former bak
- ssh $(SERVER) rm -rf $(RPMSAREA)/$(BASEBAK)
- # bak previous repo
- ssh $(SERVER) mv $(RPMSAREA)/$(BASE) $(RPMSAREA)/$(BASEBAK)
- # install new repo
- ssh $(SERVER) mv $(RPMSAREA)/$(BASETMP) $(RPMSAREA)/$(BASE)
- # sign and re-index
- ssh $(SERVER) chroot /plc/root service plc start packages
-
-install-bootstrap:
- # install node image
- install_bz2=$(wildcard BUILD/bootmanager-*/bootmanager/support-files/PlanetLab-Bootstrap.tar.bz2) ; \
- if [ -n "$$install_bz2" ] ; then rsync $$install_bz2 $(SERVER):$(BOOTAREA) ; fi
-#endif
-
-.PHONY: install
+# myplc-docs only contains docs for PLCAPI and NMAPI, but
+# we still need to pull MyPLC, as it is where the specfile lies,
+# together with the utility script docbook2drupal.sh
+myplc-docs-MODULES := MyPLC PLCAPI NodeManager Monitor
+myplc-docs-SPEC := myplc-docs.spec
+ALL += myplc-docs
+
+# using some other name than myplc-release, as this is a make target already
+release-MODULES := MyPLC
+release-SPEC := myplc-release.spec
+release-RPMDATE := yes
+ALL += release