aboutsummaryrefslogtreecommitdiff
path: root/extra/Makefile
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-03-16 14:22:14 -0400
committerB. Stack <bgstack15@gmail.com>2022-03-16 14:24:44 -0400
commita1a2bdc6e16e6a1f81dd15557a72c4aeaf606800 (patch)
tree09b2f8bc6112a680aead7ce301f9047ff7b7ec24 /extra/Makefile
parentinitial commit (diff)
downloadfifconfig-a1a2bdc6e16e6a1f81dd15557a72c4aeaf606800.tar.gz
fifconfig-a1a2bdc6e16e6a1f81dd15557a72c4aeaf606800.tar.bz2
fifconfig-a1a2bdc6e16e6a1f81dd15557a72c4aeaf606800.zip
improve installation
Diffstat (limited to 'extra/Makefile')
-rw-r--r--extra/Makefile14
1 files changed, 4 insertions, 10 deletions
diff --git a/extra/Makefile b/extra/Makefile
index 6106c24..361c246 100644
--- a/extra/Makefile
+++ b/extra/Makefile
@@ -23,7 +23,6 @@ DEFAULTDIR = $(DESTDIR)/etc/sysconfig# for debian use '$(DESTDIR)/etc/default'
LIBEXECDIR = $(DESTDIR)$(prefix)/libexec
SHAREDIR = $(DESTDIR)$(prefix)/share
DOCDIR = $(SHAREDIR)/doc/$(APPNAME)
-APPDIR = $(SHAREDIR)/$(APPNAME)
APPVARDIR = $(DESTDIR)/var/$(APPNAME)
MANDIR = $(SHAREDIR)/man
SYSVDIR = $(SYSCONFDIR)/init.d
@@ -83,15 +82,13 @@ deplist_opts:
@${grepbin} -h -o -riIE '\<(dep|rec|sug)-[^\ :]+:' ${SRCDIR} | ${sedbin} -r -e 's/(dep|rec|sug)-//;' -e 's/:$$//;' | ${sortbin} | ${uniqbin} 1>&2
install_files:
- ${installbin} -m0755 -d ${LOGDIR} ${APPVARDIR} ${APPDIR}/static ${APPDIR}/templates \
+ ${installbin} -m0755 -d ${LOGDIR} ${APPVARDIR} \
${DOCDIR} ${SBINDIR} ${SYSCONFDIR} ${LIBEXECDIR}/${APPNAME}
${installbin} -m0755 -t ${SBINDIR} ${SRCDIR}/${APPNAME}.bin
- ${installbin} -m0644 -t ${LIBEXECDIR}/${APPNAME} ${SRCDIR}/${APPNAME}.py ${SRCDIR}/${APPNAME}_auth.py
+ ${installbin} -m0644 -t ${LIBEXECDIR}/${APPNAME} ${SRCDIR}/${APPNAME}.py
${installbin} -m0644 ${SRCDIR}/${APPNAME}.conf.example ${SYSCONFDIR}/${APPNAME}.conf
${installbin} -m0644 ${SRCDIR}/${APPNAME}.wsgi.ini.example ${SYSCONFDIR}/${APPNAME}.wsgi.ini
${installbin} -m0644 -t ${DOCDIR} ${SRCDIR}/*.md
- ${installbin} -m0644 -t ${APPDIR}/static ${SRCDIR}/static/*
- ${installbin} -m0644 -t ${APPDIR}/templates ${SRCDIR}/templates/*
ifeq ($(with_apache),YES)
${installbin} -m0755 -d ${APACHEDIR}
${installbin} -m0644 ${SRCDIR}/extra/${APPNAME}.conf.apache ${APACHEDIR}/${APPNAME}.conf
@@ -114,10 +111,8 @@ endif
uninstall:
@${echobin} SRCDIR=${SRCDIR}
- ${rmbin} -f ${APPDIR}/${APPNAME}.* \
+ ${rmbin} -f \
${DOCDIR}/* \
- ${APPDIR}/static/* \
- ${APPDIR}/templates/* \
${LIBEXECDIR}/${APPNAME}/* \
${SBINDIR}/${APPNAME}.bin \
1>/dev/null 2>&1 || :
@@ -125,10 +120,9 @@ uninstall:
${rmbin} -f ${SYSVDIR}/${APPNAME} || :
# remove all installed directories that are now blank.
- ${rmdirbin} ${APPVARDIR} ${APPDIR}/static \
+ ${rmdirbin} ${APPVARDIR} \
${SYSVDIR} ${APACHEDIR} ${DOCDIR} \
${LIBEXECDIR}/${APPNAME} ${LOGDIR} 2>/dev/null || :
- ${rmdirbin} ${APPDIR} 2>/dev/null || :
clean:
-@${echobin} "target $@ not implemented yet! Gotta say unh." && ${falsebin}
bgstack15