[slbackup-commit] CVS update: slbackup-php Makefile
finnarne-guest at alioth.debian.org
finnarne-guest at alioth.debian.org
Fri Apr 13 09:41:33 UTC 2007
User: finnarne-guest
Date: 07/04/13 09:41:33
Added: . Makefile
Log:
Tried to debianize this Package, by copying most of Makefile and debian/ from lwat
Revision Changes Path
1.1 slbackup-php/Makefile
Index: Makefile
===================================================================
PACKAGE = slbackup-php
LIBS= \
admin.php \
admin.js \
index.php \
fixup.php \
chguserpw.php \
default.css \
createlm.php \
buildconf.php \
import.php \
functions.php
SCRIPTS= \
createhomedir
CONFS= \
apache.conf
SAMPLES= \
admin.ini \
admin-edu.ini \
admin-slx.ini \
config.php
DOCS= \
README \
TODO \
ChangeLog
BIN= \
slbackup-php_adduser.php
INSTALL = install -p -m 755
INSTALL_DATA= install -D -p -m 644
LANG=C
prefix = /usr/local
sysconfdir = /etc/$(PACKAGE)
sharedir = $(prefix)/share/$(PACKAGE)
webdir = $(sharedir)/web
scriptsdir = $(sharedir)/scripts
templatedir= $(sharedir)/templates
localedir = $(sharedir)/locales
docdir = $(prefix)/share/doc/$(PACKAGE)
htmldocdir = $(prefix)/share/doc/$(PACKAGE)/html
sampledir = $(prefix)/share/doc/$(PACKAGE)/examples
bindir = $(prefix)/bin
all:
po/*.po: po/slbackup-php.pot
cp $@ $@.bak ; \
msgmerge $@.bak $^ > $@
locales/mo-stamp: po/*.po
for po in $^ ; do \
locale=$$(basename $$po .po) ; \
echo $$locale ; \
mkdir -p locales/$$locale/LC_MESSAGES ; \
msgfmt --statistics -o locales/$$locale/LC_MESSAGES/$(PACKAGE).mo $$po ; \
done
touch locales/mo-stamp
mo-files: locales/mo-stamp
po/slbackup-php.pot: lib/*.php templates/*.tpl
tsmarty2c.php templates | \
xgettext --add-comments --default-domain=slbackup-php \
- lib/*.php --output po/slbackup-php.pot
install: all
install -d $(DESTDIR)$(sharedir)
install -d $(DESTDIR)$(sysconfdir)
install -d $(DESTDIR)$(docdir)
install -d $(DESTDIR)$(htmldocdir)
install -d $(DESTDIR)$(sampledir)
install -d $(DESTDIR)$(webdir)
install -d $(DESTDIR)$(scriptsdir)
install -d $(DESTDIR)$(templatedir)
install -d $(DESTDIR)$(localedir)
install -d $(DESTDIR)$(bindir)
for locale in $$(find locales -type f -name $(PACKAGE).mo -printf "%P ") ; do \
install -d $(DESTDIR)$(localedir)/$$(dirname $$locale) ; \
$(INSTALL_DATA) locales/$$locale $(DESTDIR)$(localedir)/$$(dirname $$locale) ; \
done
for templates in $$(find templates -type f -name "*.tpl" -printf "%P ") ; do \
$(INSTALL_DATA) templates/$$templates $(DESTDIR)$(templatedir) ; \
done
for script in $(SCRIPTS); do \
$(INSTALL) share/$$script $(DESTDIR)$(scriptsdir); \
done
for lib in $(LIBS); do \
$(INSTALL_DATA) lib/$$lib $(DESTDIR)$(webdir) ; \
done
for conf in $(CONFS); do \
$(INSTALL_DATA) etc/$$conf $(DESTDIR)$(sysconfdir) ; \
done
for doc in $(DOCS); do \
$(INSTALL_DATA) $$doc $(DESTDIR)$(docdir) ; \
done
for htmldoc in $$(find doc -type f -name "*.html" -printf "%P ") ; do \
$(INSTALL_DATA) doc/$$htmldoc $(DESTDIR)$(htmldocdir) ; \
done
for sample in $(SAMPLES); do \
$(INSTALL_DATA) examples/$$sample $(DESTDIR)$(sampledir) ; \
done
for bin in $(BIN); do \
$(INSTALL) bin/$$bin $(DESTDIR)$(bindir) ; \
done
clean:
# Remove CVS cruft
find . -type f -name '.#*' -o -name "*.bak" -o -name "*~" | xargs -r rm -v
# Removed completed translations
rm -rf locales
dist:
debuild -us -uc
More information about the slbackup-commit
mailing list