Rework Makefile to better classify files.
authorMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 11:10:17 +0000 (12:10 +0100)
committerMike Taylor <mike@indexdata.com>
Mon, 28 Apr 2014 11:10:17 +0000 (12:10 +0100)
src/Makefile

index fc5673f..c6fb23a 100644 (file)
@@ -17,10 +17,11 @@ COMPONENTS = mkws-handlebars.js \
        mkws-widget-authname.js mkws-widget-categories.js mkws-widget-log.js \
        mkws-widget-record.js mkws-widget-builder.js
 
-INSTALLABLE = ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE} \
-       mkws.js mkws-jquery.js mkws-complete.js \
-       mkws.min.js mkws-complete.min.js \
-       VERSION NEWS
+GENERATED = ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE} \
+       mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js
+
+INSTALLABLE = mkws-jquery.js VERSION NEWS $(GENERATED)
+
 INSTALLED = $(INSTALLABLE:%=../tools/htdocs/%)
 
 **make-default**: ../tools/htdocs/mkws.js
@@ -96,6 +97,5 @@ distclean: clean
        rm -f *.orig *.bak *.rej
 
 clean:
-       rm -f ${HANDLEBARS_FILE} ${JQUERY_FILE} ${JQUERY_JSON_FILE} ${PP2_FILE}
-       rm -f mkws.js mkws.min.js mkws-complete.js mkws-complete.min.js
+       rm -f ${GENERATED}