2007-01-30 12:47:36 +00:00
|
|
|
BINDIR=/usr/local/bin
|
|
|
|
MODDIR=/usr/local/lib
|
|
|
|
|
2007-04-14 08:26:46 +00:00
|
|
|
VERS=4.0
|
2007-08-06 18:17:29 +00:00
|
|
|
DATE=2007-08-05
|
2007-01-30 12:47:36 +00:00
|
|
|
DIR=fhem-$(VERS)
|
|
|
|
|
|
|
|
all:
|
|
|
|
@echo Nothing to do for all.
|
|
|
|
@echo To install, check the Makefile, and then \'make install\'
|
|
|
|
|
|
|
|
install:
|
|
|
|
cp fhem.pl $(BINDIR)
|
|
|
|
cp -rp FHEM $(MODDIR)
|
|
|
|
perl -pi -e 's,modpath .,modpath $(MODDIR),' examples/*
|
|
|
|
|
|
|
|
dist:
|
|
|
|
@echo Version is $(VERS), Date is $(DATE)
|
|
|
|
mkdir .f
|
|
|
|
cp -rp * .f
|
|
|
|
find .f -name \*.orig -print | xargs rm -f
|
|
|
|
find .f -type f -print |\
|
|
|
|
xargs perl -pi -e 's/=VERS=/$(VERS)/g;s/=DATE=/$(DATE)/g'
|
|
|
|
mv .f fhem-$(VERS)
|
|
|
|
tar cf - fhem-$(VERS) | gzip > fhem-$(VERS).tar.gz
|
|
|
|
mv fhem-$(VERS)/docs/*.html .
|
|
|
|
rm -rf fhem-$(VERS)
|