# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2003-2006 The Trustees of Princeton University
#
-# $Id: onelab.mk,v 1.18 2007/03/19 09:18:54 thierry Exp $
+# $Id$
#
#
#
madwifi-ng-MODULE := madwifi-ng
-madwifi-ng-SPEC := madwifi-ng/madwifi.spec
+madwifi-ng-SPEC := madwifi.spec
ALL += madwifi-ng
# Build kernel first so we can bootstrap off of its build
# bootcd requires current packages
bootcd: $(filter-out bootcd,$(ALL))
+#
+# plcwww
+#
+
+plcwww-MODULE := new_plc_www
+plcwww-SPEC := plcwww.spec
+ALL += plcwww
+
#
# MyPLC
#
-myplc-MODULE := build myplc new_plc_www plc/scripts
+myplc-MODULE := build myplc plc/scripts
myplc-SPEC := myplc.spec
# Package must be built as root
myplc-RPMBUILD := sudo rpmbuild
# ...and the yum manifest
myplc: RPMS/yumgroups.xml
+# we also ship various information on the build in /etc/myplc-release
+# we cannot store this under SOURCES/myplc
+# otherwise the code extraction phase does not take place
+# because it depends on $SOURCES/$(package) as per Rules.mk
+myplc: SOURCES/myplc-release
+
+SOURCES/myplc-release:
+ @echo 'Creating myplc-release'
+ rm -f $@
+ (echo -n 'Build date: ' ; date '+%Y.%m.%d') >> $@
+ (echo -n 'Build hostname: ' ; hostname) >> $@
+ (echo -n 'Build location: ' ; pwd) >> $@
+ echo "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx tags file contents" >> $@
+ cat $(TAGSFILE) >> $@
+
#
# MyPLC development environment
#