Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. $ tree
  2. .
  3. ├── etc
  4. │   ├── developer.py
  5. │   ├── _generate_uuid_.patch
  6. │   ├── master.py
  7. │   └── test.py
  8. └── Makefile
  9.  
  10. 1 directory, 5 files
  11. $ cat Makefile
  12. DESTDIR?=../..
  13. ETC=$(DESTDIR)/etc/taifuno
  14. LINK=$(ETC)/settings.py
  15.  
  16. all:
  17. echo 'usage: make [DESTDIR=../..] (developer|master|test)'
  18.  
  19. .install:
  20. rm -f $(LINK)
  21. mkdir -p $(ETC)
  22. install -m 644 ./etc/developer.py $(ETC)/developer.py
  23. install -m 644 ./etc/master.py $(ETC)/master.py
  24. install -m 644 ./etc/test.py $(ETC)/test.py
  25.  
  26. developer: .install
  27. ln -s $(ETC)/developer.py $(LINK)
  28.  
  29. master: .install
  30. ln -s $(ETC)/master.py $(LINK)
  31.  
  32. test: .install
  33. ln -s $(ETC)/test.py $(LINK)
  34. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement