improve clean rule
@@ -524,15 +524,17 @@ create_picobj_dir_structure: $(PICOBJDIR)
# Cleaners
.PHONY: clean
-clean:
+clean: cleanobj cleanapi cleanpackage cleantest distclean
+
+.PHONY: cleanobj
+cleanobj:
@$(rm) -r $(OBJDIR)
@$(rm) -r $(PICOBJDIR)
+
+.PHONY: cleanpackage
+cleanpackage:
@$(rm) -r debian/.debhelper
@$(rm) -r rpm/rpmbuild
- @$(rm) -r lib/api
- @$(rm) -r $(BINDIR)
- @$(rm) -r $(MANDIR)
- @$(rm) -r test/bin
@$(rm) -r debian/files
@$(rm) -r debian/liboidc-dev*
@$(rm) -r debian/liboidc-agent3
@@ -545,8 +547,12 @@ clean:
@$(rm) -r debian/oidc-agent.debhelper.log
@$(rm) -r debian/oidc-agent.substvars
+.PHONY: cleantest
+cleantest:
+ @$(rm) -r $(TESTBINDIR)
+
.PHONY: distclean
-distclean: clean
+distclean: cleanobj
@$(rm) -r $(BINDIR)
@$(rm) -r $(MANDIR)
@@ -555,7 +561,7 @@ cleanapi:
@$(rm) -r $(APILIB)
.PHONY: remove
-remove: distclean cleanapi
+remove: cleanobj cleanapi cleanpackage cleantest distclean
# Packaging
