Commit eb19de2a authored by Ted Trask's avatar Ted Trask

Add image files to the Makefile

parent ee842494
......@@ -4,11 +4,17 @@ VERSION=0.6.0
CRON_FILE=weblogimport
APP_DIST=$(filter-out $(CRON_FILE), $(wildcard weblog*))
IMAGE_DIST=bypass.png \
denied.png \
dodgy.png \
EXTRA_DIST=README Makefile config.mk $(CRON_FILE)
APP_DIST=weblog-* \
weblog.roles \
weblog.menu \
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
EXTRA_DIST=README Makefile config.mk
DISTFILES=$(CRON_FILE) $(IMAGE_DIST) $(APP_DIST) $(EXTRA_DIST)
TAR=tar
......@@ -16,6 +22,7 @@ P=$(PACKAGE)-$(VERSION)
tarball=$(P).tar.bz2
install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
cron_dir=$(DESTDIR)/etc/periodic/daily
static_dir=$(DESTDIR)/${wwwdir}/skins/static
all:
clean:
......@@ -24,9 +31,10 @@ clean:
dist: $(tarball)
install:
mkdir -p "$(install_dir)" "$(cron_dir)"
mkdir -p "$(install_dir)" "$(cron_dir)" "$(static_dir)"
cp -a $(APP_DIST) "$(install_dir)"
cp -a $(CRON_FILE) "$(cron_dir)"
cp -a $(IMAGE_DIST) "$(static_dir)"
$(tarball): $(DISTFILES)
rm -rf $(P)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment