From de2738259547546411d30770038fa2022c1bc341 Mon Sep 17 00:00:00 2001 From: lxsang Date: Thu, 19 Dec 2019 23:01:05 +0100 Subject: [PATCH] update makefiles --- Makefile | 9 ++- apps/Makefile | 7 +- blog/Makefile | 5 +- get/Makefile | 7 +- info/Makefile | 10 +-- info/index.ls.old | 196 ---------------------------------------------- os/Makefile | 8 +- 7 files changed, 13 insertions(+), 229 deletions(-) delete mode 100644 info/index.ls.old diff --git a/Makefile b/Makefile index aaaa39c..eca50c5 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ -BUILDDIR = ./build -projs = grs info blog apps os +BUILDDIR?=./build +PROJS?=grs info blog apps os copyfiles = index.ls mimes.json main: copy - for f in $(projs); do make -C "$${f}" ; done + for f in $(PROJS); do BUILDDIR=$(BUILDDIR)/"$${f}" make -C "$${f}" ; done copy: cp -rf $(copyfiles) $(BUILDDIR) cp -r silk $(BUILDDIR) clean: - -for f in $(projs); do rm -r $(BUILDDIR)/"$${f}"; done + -for f in $(PROJS); do rm -r $(BUILDDIR)/"$${f}"; done + -for f in $(copyfiles); do rm -r $(BUILDDIR)/"$${f}"; done -rm -r $(BUILDDIR)/silk \ No newline at end of file diff --git a/apps/Makefile b/apps/Makefile index 6aa4b87..5cd96dc 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -1,5 +1,3 @@ -BUILDDIR = ../build/apps - copyfiles = router.lua controllers logs views models coffees = assets/coffee/bootstrap.coffee \ assets/coffee/BaseObject.coffee \ @@ -23,7 +21,4 @@ js: - rm assets/scripts/main.* for f in $(coffees); do (cat "$${f}"; echo) >> assets/scripts/main.coffee; done coffee --compile assets/scripts/main.coffee - -rm assets/scripts/main.coffee - -clean: - rm -rf $(BUILDDIR)/* \ No newline at end of file + -rm assets/scripts/main.coffee \ No newline at end of file diff --git a/blog/Makefile b/blog/Makefile index 80063f9..8f11063 100644 --- a/blog/Makefile +++ b/blog/Makefile @@ -1,10 +1,7 @@ -BUILDDIR = ../build/blog - copyfiles = assets views models controllers router.lua main: - mkdir $(BUILDDIR) - cp -rf $(copyfiles) $(BUILDDIR) - cd $(BUILDDIR) && ln -s ../grs ./rst -clean: - rm -rf $(BUILDDIR)/* \ No newline at end of file + \ No newline at end of file diff --git a/get/Makefile b/get/Makefile index 623ac9c..4e6eb2b 100644 --- a/get/Makefile +++ b/get/Makefile @@ -1,10 +1,5 @@ -BUILDDIR = ../build/get - copyfiles = router.lua shs main: - mkdir -p $(BUILDDIR) cp -rf $(copyfiles) $(BUILDDIR) - - cd $(BUILDDIR) && ln -s ../grs ./rst - -clean: - rm -rf $(BUILDDIR)/* \ No newline at end of file + - cd $(BUILDDIR) && ln -s ../grs ./rst \ No newline at end of file diff --git a/info/Makefile b/info/Makefile index d527173..6c67172 100644 --- a/info/Makefile +++ b/info/Makefile @@ -1,10 +1,6 @@ -BUILDDIR = ../build/info - -copyfiles = index.ls style.css router.lua models views controllers logs robot.txt +copyfiles = style.css router.lua models views controllers robot.txt main: - mkdir $(BUILDDIR) - - cp -rf $(copyfiles) $(BUILDDIR) - - cd $(BUILDDIR) && ln -s ../grs ./rst -clean: - rm -rf $(BUILDDIR)/* \ No newline at end of file + cp -rf $(copyfiles) $(BUILDDIR) + - cd $(BUILDDIR) && ln -s ../grs ./rst \ No newline at end of file diff --git a/info/index.ls.old b/info/index.ls.old deleted file mode 100644 index 1f0083b..0000000 --- a/info/index.ls.old +++ /dev/null @@ -1,196 +0,0 @@ - - - - - - - - - Porfolio - - -
- -
-

- - Curriculum Vitae -

-

-

-

- - - - - - -

-

- - - -

- 0 then -- we have the sub childrent -?> -
> -

- -
-

- -
-

- - - - - - -

-
- - - - -
-
- -
-
- -
- -
- -
> -

- -
-

- - - - - - -

-
- - - - -
-
- -
-
- ") - end - end - db:close() - end - ?> -
-

-

Powered by antd server, (C) 2017-2018 Xuan Sang LE

-
-
- -
-
    - -
  • >
  • - -
-
- -
- - - \ No newline at end of file diff --git a/os/Makefile b/os/Makefile index 53264b8..2c845ea 100644 --- a/os/Makefile +++ b/os/Makefile @@ -1,10 +1,6 @@ -BUILDDIR = ../build/os - copyfiles = views models controllers logs libs router.lua main: - mkdir $(BUILDDIR) - - cp -rf $(copyfiles) $(BUILDDIR) - - cd $(BUILDDIR) && ln -s ../grs ./rst -clean: - cd $(BUILDDIR) && rm -rf $(copyfiles) \ No newline at end of file + - cp -rfv $(copyfiles) $(BUILDDIR) + - cd $(BUILDDIR) && ln -s ../grs ./rst \ No newline at end of file