Merge branch 'Teaman-ND' into Teaman-RT
[tomato.git] / release / src / router / rom / Makefile
blob6d01e255e3d551cd62b93700d028fca70966eeb7
1 include ../common.mak
3 all:
4 @echo "" >rom/etc/motd
5 @echo "" >>rom/etc/motd
6 @echo "Tomato v"`cat ../shared/tomato_version`"" >>rom/etc/motd
8 clean:
9 rm -f rom/etc/motd
11 install:
12 mkdir -p $(INSTALLDIR)
13 ( tar --exclude=.svn --exclude=*.bak -cpf - rom ) | ( cd $(INSTALLDIR) && tar -xpf - )
15 # remove comments, compress whitespace
16 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/services > $(INSTALLDIR)/rom/etc/services
17 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/protocols > $(INSTALLDIR)/rom/etc/protocols
19 ifeq ($(TCONFIG_HTTPS),y)
20 sed 's/#.*//g;s/[ \t]\+/ /g;s/^[ \t]*//;s/[ \t]*$$//;/^$$/d' < rom/etc/openssl.cnf > $(INSTALLDIR)/rom/etc/openssl.cnf
21 else
22 rm -f $(INSTALLDIR)/rom/etc/openssl.cnf
23 endif