Commit 5999fc38 authored by Timo Teräs's avatar Timo Teräs

Install import script directly as a cron job.

parent 11fa92e2
APP_NAME=weblog
PACKAGE=acf-$(APP_NAME)
VERSION=0.4.3
VERSION=0.4.4
APP_DIST=\
weblog* \
CRON_FILE=weblogimport
APP_DIST=$(filter-out $(CRON_FILE), $(wildcard weblog*))
EXTRA_DIST=README Makefile config.mk
EXTRA_DIST=README Makefile config.mk $(CRON_FILE)
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
TAR=tar
P=$(PACKAGE)-$(VERSION)
tarball=$(P).tar.bz2
install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
cron_dir=$(DESTDIR)/etc/periodic/daily
all:
clean:
......@@ -23,8 +24,9 @@ clean:
dist: $(tarball)
install:
mkdir -p "$(install_dir)"
mkdir -p "$(install_dir)" "$(cron_dir)"
cp -a $(APP_DIST) "$(install_dir)"
cp -a $(CRON_FILE) "$(cron_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