kun

un outil de sondage - retour accueil

git clone git://bebou.netlib.re/kun
Log | Files | Refs | README |

makefile (775B)


      1 PREFIX = /usr/local
      2 
      3 all: kun
      4 
      5 kun: kun.sh commands.sh utils.sh
      6 	< $< sed -E 's,\./utils,/usr/local/share/kun/utils,;s,\./commands,/usr/local/share/kun/commands,' > $@
      7 
      8 test:
      9 	@( tests/tests.sh 2>&1 | sed -E 's,\{[^}]+\},{id},g' ) | diff - tests/reference \
     10 		&& echo "RĂ©ussite" \
     11 		|| echo "Echec"
     12 
     13 tests/reference: *.sh tests/tests.sh
     14 	( tests/tests.sh 2>&1 | sed -E 's,\{[^}]+\},{id},g' ) > $@
     15 
     16 install:
     17 	mkdir -p ${PREFIX}/bin
     18 	mkdir -p ${PREFIX}/share/kun
     19 	chmod +x kun
     20 	cp kun ${PREFIX}/bin
     21 	cp utils.sh ${PREFIX}/share/kun/
     22 	cp commands.sh ${PREFIX}/share/kun/
     23 
     24 uninstall:
     25 	rm ${PREFIX}/bin/kun
     26 	rm ${PREFIX}/share/kun/commands.sh
     27 	rm ${PREFIX}/share/kun/utils.sh
     28 	rmdir --ignore-fail-on-non-empty ${PREFIX}/share/kun
     29 	rmdir --ignore-fail-on-non-empty ${PREFIX}/bin
     30