Skip to content

Commit

Permalink
Merge pull request #68 from eguefif/heredoc
Browse files Browse the repository at this point in the history
Builtin Makefiles and heredoc
  • Loading branch information
PelletierM authored Nov 22, 2023
2 parents 6deb8d5 + 818b7e1 commit a60ae1a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ test:
clean:
rm -rf $(OBJ)
make -C $(LIBFT_DIR) clean
@for builtin in $(_BUILTINS); do \
echo make -C $(BUILTIN_DIR)/srcs_$${builtin} clean; \
make --silent -C $(BUILTIN_DIR)/srcs_$${builtin} clean; \
done
# @if [ -d $(READLINE_DIR) ] ; then \
# make -C $(READLINE_DIR) clean ; \
# fi
Expand All @@ -92,6 +96,10 @@ fclean: clean
rm -r $(ODIR) ; \
fi
rm -rf $(LIBFT_DIR)/libft.a
@for builtin in $(_BUILTINS); do \
echo make -C $(BUILTIN_DIR)/srcs_$${builtin} fclean; \
make --silent -C $(BUILTIN_DIR)/srcs_$${builtin} fclean; \
done
# rm -rf $(READLINE_DIR)

re: fclean all
11 changes: 9 additions & 2 deletions builtins/srcs_heredoc/heredoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,22 @@
/* By: maxpelle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/22 12:36:39 by maxpelle #+# #+# */
/* Updated: 2023/11/22 13:08:44 by maxpelle ### ########.fr */
/* Updated: 2023/11/22 15:50:01 by maxpelle ### ########.fr */
/* */
/* ************************************************************************** */

#include "heredoc.h"

int main(int argc, char *argv[])
{
char *filename;
char **env;
char *end_line;

(void) argc;
(void) argv;
filename = argv[1];
end_line = argv[2];
env = argv[3];

return (0);
}

0 comments on commit a60ae1a

Please sign in to comment.