Commits

Felix Krull committed 3c0a987

Improve build targets a bit.

Comments (0)

Files changed (1)

     cachedir = os.path.join(installdir, "cache")
 
     if len(sys.argv) < 2:
-        targets = ["web-build", "cache"]
+        targets = ["build", "cache"]
     else:
         targets = sys.argv[1:]
     
     for t in targets:
-        if t == "web-build":
+        if t == "build":
             web_build(web_srcdir, installdir)
-        elif t == "web-clean":
+        elif t == "clean":
             web_clean(installdir)
         elif t == "cache":
             if not os.path.isdir(albumdir):
             if not os.path.isdir(cachedir):
                 os.makedirs(cachedir)
             TreeWalker(albumdir, cachedir)
-        elif t == "forceclean":
+        elif t == "distclean":
             shutil.rmtree(installdir)
+        elif t == "cleancache":
+            shutil.rmtree(cachedir)
         elif t == "serve":
             port = 8000
             os.chdir(installdir)