-#BASE := onelab
-BASENEW := build-$(notdir $(shell pwd))
-BASEBAK := planetlab-bak
-BASE := planetlab
-
-RPMS/yumgroups.xml:
- install -D -m 644 $(YUMGROUPS) RPMS/yumgroups.xml
-
-INSTALL-TARGETS := install-rpms install-index install-adopt install-bootstrap
-install: $(INSTALL-TARGETS)
-
-install-help:
- @echo install: $(INSTALL-TARGETS)
-
-install-rpms:RPMS/yumgroups.xml
- # create repository
- ssh $(SERVER) mkdir -p /plc/data/$(RPMSAREA)/$(BASENEW)
- # populate
- rsync -v --perms --times --group --compress --rsh=ssh \
- RPMS/yumgroups.xml $(wildcard RPMS/*/*.rpm) $(SERVER):/plc/data/$(RPMSAREA)/$(BASENEW)/
-
-install-index:
- # sign and index new repository
- ssh $(SERVER) chroot /plc/root /etc/plc.d/packages start $(RPMSAREA)/$(BASENEW)/ 2>> install-index.log
-
-install-clean-index:
- # sign and index new repository
- ssh $(SERVER) chroot /plc/root /etc/plc.d/packages clean $(RPMSAREA)/$(BASENEW)/ 2>> install-index.log
-
-install-adopt:
- # cleanup former bak
- ssh $(SERVER) rm -rf /plc/data/$(RPMSAREA)/$(BASEBAK)
- # bak previous repo
- ssh $(SERVER) mv /plc/data/$(RPMSAREA)/$(BASE) /plc/data/$(RPMSAREA)/$(BASEBAK)
- # install new repo
- ssh $(SERVER) mv /plc/data/$(RPMSAREA)/$(BASENEW) /plc/data/$(RPMSAREA)/$(BASE)
-
-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):/plc/data/$(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